package com.gec.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gec.model.system.ITripHotel;
import com.gec.model.system.ITripHotelRoom;
import com.gec.model.vo.ITripHotelRoomVo;
import com.gec.system.mapper.ITripHotelRoomMapper;
import com.gec.system.service.ITripHotelRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 酒店房间表 服务实现类
 * </p>
 *
 * @author dafei
 * @since 2024-01-24
 */
@Service
public class ITripHotelRoomServiceImpl extends ServiceImpl<ITripHotelRoomMapper, ITripHotelRoom> implements ITripHotelRoomService {

    @Override
    public IPage<ITripHotelRoom> selectPage(IPage<ITripHotelRoom> p1, ITripHotelRoomVo iTripHotelRoomVo) {
        IPage<ITripHotelRoom> iPage = this.baseMapper.selectPage(p1,iTripHotelRoomVo,null) ;
        return iPage;
    }

    @Override
    public List<ITripHotelRoom> selectPage() {
        List<ITripHotelRoom> iTripHotelRooms = baseMapper.selectPage();
        return iTripHotelRooms;
    }



    @Override
    public List<ITripHotel> getByHotelId(Long id) {
        List<ITripHotel> list = baseMapper.selectByHotelById(id);
        return list;
    }
}
